package com.springcloud.serviceribbon.controller;

import com.springcloud.serviceribbon.impl.HelloServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenkuan
 * @version v1.0
 * @desc
 * @date 2019/4/25 025 13:44
 */
@RestController
public class HelloController {

	@Autowired
	private HelloServiceImpl helloServiceImpl;

	@GetMapping(value = "/hi")
	public String hi(String name) {
		return helloServiceImpl.hiService(name);
	}

}
